package edu.gdkm.pojo;

import lombok.Data;

import java.util.List;

@Data
public class Course {
    private Integer cid;
    private String coursename;
    private Teacher teacher;    //一个课程只能有一个老师
    private List<Student> studentList;  //一门课程有多名学生

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }
}
